package com.jintoufs.dao.baseinfo.impl;

import com.jintoufs.dao.MyBatisSupport;
import com.jintoufs.dao.QueryFilters;
import com.jintoufs.dao.baseinfo.CurrencyExchangeDAO;
import com.jintoufs.domain.baseinfo.CurrencyExchange;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author xiaoemo
 *
 */
@Repository
public class CurrencyExchangeDAOImpl extends MyBatisSupport<CurrencyExchangeDAO, CurrencyExchange> implements CurrencyExchangeDAO {


    @Override
    public void insert(CurrencyExchange CurrencyExchange) {
        getMapper().insert(CurrencyExchange);
    }

    @Override
    public void updateByPrimaryKey(CurrencyExchange CurrencyExchange) {
        getMapper().updateByPrimaryKey(CurrencyExchange);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
        getMapper().deleteByPrimaryKey(id);
    }

    @Override
    public List<Map<String,Object>> getByFilter(QueryFilters filters) {
        return getMapper().getByFilter(filters);
    }

    @Override
    public List<Map<String, Object>> queryByParams(Map<String, Object> params) {
        return getMapper().queryByParams(params);
    }

    @Override
    public List<CurrencyExchange> queryByCurrencyExchange(Map<String, Object> params) {
        return getMapper().queryByCurrencyExchange(params);
    }
    @Override
    public CurrencyExchange selectByPrimaryKey(Integer id) {
        return getMapper().selectByPrimaryKey(id);
    }
}
